//连接出租方数据库
const { Schema, model } = require('mongoose')
const lessorsSchema = new Schema({
    username: String,
    password: String,
    state: {
        type: Number,
        default: 1
    },
    phone:String,
    credits:{
        type:Number,
        default:90
    },
}, { versionKey: false });
const lessorsModel = model('lessorsModel', lessorsSchema, "lessors");
module.exports.lessorsModel = lessorsModel;